package com.forenow.demo.demo16;

public class Test {
    public static void main(String[] args) {
        graduate g=new graduate();
        g.setName("张三");
        g.setPay(5000);
        g.setFee(3000);
        g.setAge(24);
        g.setSex("男");
        if (g.getFee()<g.getPay()) {
            System.out.println("provide a loan");
        }
        System.out.println(g.getName()+"  "+g.getSex()+" "+g.getPay()+" "+g.getFee());
    }
}
